<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>EXE加密打包器</title>
  <style>
    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: #f0f2f5;
      margin: 0;
      padding: 20px 20px;
      color: #2c3e50;
      line-height: 1.6;
    }
    .container {
      max-width: 800px;
      margin: 0 auto;
      background-color: #ffffff;
      padding: 40px;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    h1 {
      text-align: center;
      color: #34495e;
      margin: 10px 0 30px 0;
      font-size: 2.5em;
      font-weight: 300;
    }
    .form-group {
      margin-bottom: 30px;
    }
    label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
      color: #34495e;
    }
    input[type="text"], button {
      width: 100%;
      padding: 12px;
      border: 1px solid #bdc3c7;
      border-radius: 6px;
      font-size: 16px;
      transition: all 0.3s ease;
    }
    input[type="text"]:focus {
      border-color: #3498db;
      box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
      outline: none;
    }
    button {
      background-color: #2ecc71;
      color: white;
      border: none;
      cursor: pointer;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 1px;
      transition: all 0.3s ease;
    }
    button:hover {
      background-color: #27ae60;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
    }
    button:active {
      transform: translateY(0);
    }
    #selectedFile {
      word-break: break-all;
      background-color: #f8f9fa;
      padding: 15px;
      border-radius: 6px;
      border: 1px solid #e9ecef;
      font-size: 0.9em;
      color: #495057;
    }
    .progress-container {
      margin-top: 30px;
      display: none;
    }
    .progress-bar-outer {
      width: 100%;
      height: 20px;
      background-color: #edf2f7;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    .progress-bar-inner {
      width: 0%;
      height: 100%;
      background: linear-gradient(90deg, #2ecc71, #27ae60);
      border-radius: 10px;
      transition: width 0.3s ease;
    }
    .progress-text {
      text-align: center;
      margin-top: 8px;
      font-size: 14px;
      color: #666;
    }
    .status-message {
      margin-top: 15px;
      padding: 10px;
      border-radius: 6px;
      display: none;
    }
    .status-message.success {
      background-color: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
    }
    .status-message.error {
      background-color: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
    }
  </style>
</head>
<body>
  <div class="container">
    <h1>EXE加密打包器</h1>
    <div class="form-group">
      <button id="selectExe">选择EXE文件</button>
    </div>
    <div class="form-group">
      <label for="selectedFile">已选择文件:</label>
      <div id="selectedFile"></div>
    </div>
    <form id="packageForm">
      <div class="form-group">
        <label for="authCode">授权码:</label>
        <input type="text" id="authCode" required placeholder="请输入授权码">
      </div>
      <div class="form-group">
        <button type="submit">加密并打包</button>
      </div>
    </form>
    <div class="progress-container" id="progress">
      <div class="progress-bar-outer">
        <div class="progress-bar-inner" id="progressBar"></div>
      </div>
      <div class="progress-text" id="progressText">0%</div>
    </div>
    <div class="status-message" id="statusMessage"></div>
  </div>
  <script src="src/renderer.js"></script>
</body>
</html>
